package com.gugee.ins.common.dal.ai.config;

import com.alibaba.nacos.api.config.annotation.NacosValue;
import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * AiAnalysisConfig
 * @author Huangxin
 */
@Configuration
@Getter
@Setter
public class AiAnalysisConfig {

    /**
     * ai接口
     */
    @Value("${ins.ai.host}")
    String host;

    /**
     * ai 品牌接口 地址
     */
    @Value("${ins.ai.brand.host}")
    String aiBrandHost;

    /**
     * 人脸识别接口重试次数
     */
    @NacosValue(value="${ins.ai.analysisAvatar.retry:1}", autoRefreshed = true)
    int analysisAvatarRetryTimes;

    /**
     * 语言识别接口重试次数
     */
    @NacosValue(value="${ins.ai.analysisLanguage.retry:1}", autoRefreshed = true)
    int analysisLanguageRetryTimes;

    /**
     * 收入识别接口重试次数
     */
    @NacosValue(value="${ins.ai.analysisInCome.retry:1}", autoRefreshed = true)
    int analysisInComeRetryTimes;

    /**
     * 达人分类识别接口重试次数
     */
    @NacosValue(value="${ins.ai.analysisCategory.retry:1}", autoRefreshed = true)
    int analysisCategoryRetryTimes;

    /**
     * 品牌识别接口重试次数
     */
    @NacosValue(value="${ins.ai.analysisBrand.retry:1}", autoRefreshed = true)
    int analysisBrandRetryTimes;

    /**
     * 商品分类接口重试次数
     */
    @NacosValue(value="${ins.ai.analysisProductCategory.retry:1}", autoRefreshed = true)
    int analysisProductCategoryRetryTimes;
}
